<%@ page language="java" import="java.util.*,com.entity.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://jsptags.com/tags/navigation/pager" prefix="pg" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"  prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<% response.setContentType("application/xls");    
response.setHeader("Content-Disposition", "inline; filename=\"test.xls\"");    
%> 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=" http://www.w3.org/1999/xhtml">

  <head>
   	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link rel="stylesheet" type="text/css" href="css/style.css">
<script src="js/sorttable.js"></script>
<script src="js/main.js"></script>
<script src="js/qy.js"></script>
  </head>
   
  <body>

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="sortable TableBlock no-top-border">
<thead>
  <tr class="title_text">
    <td align="center"  class="TableData" onClick="this.blur(); return sortTable('offTblBdy',  1, true);">村名</td>
    <td align="center"  class="TableData" onClick="this.blur(); return sortTable('offTblBdy',  2, true);">姓名</td>
    <td align="center" class="TableData" onClick="this.blur(); return sortTable('offTblBdy',  3, true);">培训时间</td>
    <td align="center" class="TableData" onClick="this.blur(); return sortTable('offTblBdy',  4, true);">培训内容</td>
    <td align="center" class="TableData" >备注</td>
    </tr>
  
  </thead>
  <TBODY >
  <c:forEach var="rypx" items="${list}">
  <tr>
    <td align="center" class="TableData">${rypx.ryzl.zdByBmbh.zdqc}</td>
    <td align="center" class="TableData">${rypx.ryzl.xm}</td>
    <td align="center" class="TableData">${rypx.pxrqString}</td>
    <td align="center" class="TableData">
    <c:if test="${fn:length(rypx.pxnr)>36}">
              <c:forEach begin="0" end ="${fn:length(rypx.pxnr)}" var="i" step="36">
               ${fn:substring(rypx.pxnr,i,(i+36)) }<br/>
              </c:forEach>
               </c:if>
               <c:if test="${fn:length(rypx.pxnr)<24}">${rypx.pxnr }</c:if> 
   </td>
    <td align="center" class="TableData">${rypx.bz}</td>
    </tr>
  </c:forEach>
  </TBODY>
</table>

<c:if test="${fn:length(list)==0}">
无数据
</c:if>
  
  </body>
</html>